package a.j;

import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;

public class mc
  implements MouseWheelListener
{
  private int a = 1;
  private boolean c;
  public static boolean d;
  
  public void a(pg parampg)
  {
    parampg.B().addMouseWheelListener(this);
  }
  
  public void b(pg parampg)
  {
    parampg.B().removeMouseWheelListener(this);
  }
  
  public void mouseWheelMoved(MouseWheelEvent paramMouseWheelEvent)
  {
    boolean bool4 = ld.E;
    int i = c(paramMouseWheelEvent);
    if (i != 0)
    {
      pg localpg = d(paramMouseWheelEvent);
      if (localpg != null)
      {
        if (!bool4) {}
        boolean bool1 = i < 0;
        boolean bool2 = a(paramMouseWheelEvent);
        if (!bool4) {}
        boolean bool3 = !a();
        if (!bool4) {}
        switch (paramMouseWheelEvent.getScrollType())
        {
        case 0: 
          if (!bool4)
          {
            localpg.a(i, false, bool2, bool3, bool1);
            if (!ld.D) {
              return;
            }
          }
        case 1: 
          localpg.a(i, true, bool2, bool3, bool1);
        }
      }
    }
  }
  
  public boolean a()
  {
    return this.c;
  }
  
  public void a(boolean paramBoolean)
  {
    this.c = paramBoolean;
  }
  
  public int b()
  {
    return this.a;
  }
  
  public void a(int paramInt)
  {
    this.a = paramInt;
  }
  
  protected boolean a(MouseWheelEvent paramMouseWheelEvent)
  {
    int i = b();
    if (!ld.E) {}
    return (paramMouseWheelEvent.getModifiers() & i) == i;
  }
  
  private static int c(MouseWheelEvent paramMouseWheelEvent)
  {
    if (!ld.E) {
      switch (paramMouseWheelEvent.getScrollType())
      {
      case 0: 
        return paramMouseWheelEvent.getUnitsToScroll();
      case 1: 
        return paramMouseWheelEvent.getWheelRotation();
      }
    }
    return 0;
  }
  
  private static pg d(MouseWheelEvent paramMouseWheelEvent)
  {
    return pg.a(paramMouseWheelEvent.getSource());
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.mc

 * JD-Core Version:    0.7.0.1

 */